package ganga.custodian.human;

/**
 * Класс для обнаружения КС.
 * @author Bacherikov
 * @version 0.2
 * @updated 06-июл-2011 15:03:03
 */
public class EmergencyDetector {

	private static boolean dontUseEmergencyDetector = false;

	public EmergencyDetector(){

	}

	public Emergency Execute(){
		if (dontUseEmergencyDetector)
			return null;
		else{
			dontUseEmergencyDetector = true;
			return new OutOfRangeEmergency("Dummy Emergency");
		}
	}
}